export const SERVER_URL = "http://tsb.xlbzone.com";
export const API_PATH = '/api/business';

export const API_FULL = SERVER_URL + API_PATH; //通用接口

export const IMG_UPLOAD = API_FULL + '/file/upload/img'; //上传图片接口
export const IMG_SEE = API_FULL + '/getfile/img?id='; //查看图片接口

export const api = {
    common: {
        sendCode: { //获取短信验证码
            type: 'post',
            url: API_FULL+'/mobile/sendSMS/' 
        },
        userCheck: {  //验证账户是否存在
            type: 'get',
            url: API_FULL+'/outline'
        },
        verifyCode: { //匹配验证码
            type: 'post',
            url: API_FULL+'/mobile/verifySMS/'
        },
        delImgUrl: {
            type: 'post',
            url: API_FULL + "/file/delete"
        },
    },
    login: {
        captcha: {      //获取图片验证码
            type: "get",
            url: API_FULL + '/captcha'
        },
        login:{     //企业端登录接口
            type: "post",
            url: API_FULL + '/login'
        },
        logout:{    //退出登录
            type: "post",
            url: API_FULL + '/logout'
        }
    },
    forgetPassword: {
        reset: {    //重置密码
            type: "post",
            url: API_FULL + '/password/reset'
        }
    },
    account: {
        detail: {
            type: "get",
            url: API_FULL + '/company/detail'
        },
        resetMobile: {
            type: "post",
            url: API_FULL + '/mobile/reset'
        },
        updatePassword: {
            type: "post",
            url: API_FULL + '/password/update'
        }
    },
    settle: {
        settleCreate: { //入驻
            type: 'post',
            url: API_FULL + '/create'
        },
        settleDetail: {
            type: 'get',
            url: API_FULL + '/detail'
        },
        settleUpdate: {
            type: 'post',
            url: API_FULL + '/update'
        }
    },
    statement: {
        upload: {   // 上传 标准接口
            type: 'post',
            url: SERVER_URL + '/common/service/excel/data/extraction'
        },
        uploadN: {  //上传 非标准接口
            type: 'post',
            url: API_FULL + '/file/upload/xlsx'
        },
        maintenaceList: {
            type: 'get',
            url: API_FULL + '/maintenaces/lists'
        },
        create: {   // 新增维修单
            type: 'post',
            url: API_FULL + '/maintenaces/create'
        },
        update: {   //更新维修单
            type: 'post',
            url: API_FULL + '/maintenaces/update'
        },
        detail: {   //维修单详情
            type: 'get',
            url: API_FULL + '/maintenaces/detail'
        }
    },
    policy: {
        list: {
            type: "get",
            url: API_FULL + '/inform/list' 
        },
        detail: {
            type: "get",
            url: API_FULL + '/inform/detail/read' 
        },
        read: {
            type: "post",
            url: API_FULL + '/inform/read'
        }
    }
}
